<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <input type="text" v-model="inputmsg"/>
    <p>{{ inputmsg }}</p>
    <router-link to="/vfor">v-for</router-link> <br>
    <router-link to="/von">v-on</router-link> <br>
    <router-link to="/vshow">v-show</router-link> <br>
    <router-link to="/user">用户管理综合练习</router-link>
    <router-link to="/subject">科目</router-link>
    <h1>fangchao</h1>
    <h1>dedi</h1>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'v-model 指令学习:双向数据绑定',
      inputmsg: ''
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
